<template>
	<view class="success-bg">
		<view class="imgs">
			<image src="@/static/images/success.png" mode="widthFix"></image>
			<view class="success-text">
				{{props.title}}
			</view>
			<view class="return-btn" @click="hadleClick">
				返回
			</view>
		</view>

	</view>
</template>

<script setup>
	const props = defineProps(['title'])
	const emits = defineEmits(['goBack'])
	const hadleClick = () => {
		emits('goBack', true)
	}
</script>

<style lang="scss" scoped>
	.success-bg {
		padding-top: 100rpx;

		.imgs {
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 320rpx;
				height: 352rpx;
			}

			.success-text {
				margin-top: 20rpx;
				font-weight: bold;
				font-size: 32rpx;
				color: #222222;
			}

			.return-btn {
				margin-top: 100rpx;
				width: 330rpx;
				height: 88rpx;
				line-height: 88rpx;
				text-align: center;
				background: #FFFFFF;
				border-radius: 44rpx 44rpx 44rpx 44rpx;
				border: 2rpx solid #D8D8D8;
				font-weight: bold;
				font-size: 28rpx;
				color: #999999;
			}
		}

	}
</style>